import request from "@/utils/request";
//条件查询加分页
export const listNoticeForPage = (data) => {
    return request({
        url: "/system/menu/findNoticeByCond",
        method: "POST",
        data
    })
}

// 查询所有可用通知和公告
export function getNoticeList() {
    return request({
        url: '/system/menu/selectAllNotice',
        method: 'get'
    })
}
export function addNotice(data) {
    return request({
        url: '/system/menu/addNotice',
        method: 'post',
        data: data
    })
}
export function updateNotice(data) {
    return request({
        url: '/system/menu/updateNotice',
        method: 'post',
        data: data
    })
}
// 查询一个
export function getNoticeById(noticeId) {
    return request({
        url: `/system/menu/getNoticeByNoticeId/${noticeId}`,
        method: 'post'

    })
}
// 删除
export function deleteNoticeByIds(noticeIds) {
    return request({
        url: `/system/menu/deleteNoticeByNoticeIds/${noticeIds}`,
        method: 'delete'
    })
}